Skip to content

support mime-type 'audio/mpeg' for reading cover artwork#655

Merged
derf merged 1 commit intoderf:masterfrom
eworm-de:magic-mpeg
May 6, 2026
Merged

support mime-type 'audio/mpeg' for reading cover artwork#655
derf merged 1 commit intoderf:masterfrom
eworm-de:magic-mpeg

Conversation

@eworm-de
Copy link
Copy Markdown
Contributor

This is required to support cover artwork from mpeg audio (mp3) files.

@derf
Copy link
Copy Markdown
Owner

derf commented Apr 27, 2022

Good point. Could you switch to strncmp so that it is consistent with the image/ check?

@eworm-de
Copy link
Copy Markdown
Contributor Author

It is consistent with checks for compression. 😉
The reason that the check for "image/" uses strncmp is that it handles a substring.

@avlec
Copy link
Copy Markdown
Contributor

avlec commented Apr 30, 2022

Both the linked issues in the function description have been marked as closed, is there any other reason to keep this workaround?

@eworm-de eworm-de force-pushed the magic-mpeg branch 2 times, most recently from d9d0255 to 03df923 Compare May 6, 2026 16:01
This is required to support cover artwork from mpeg audio (mp3) files.
@derf
Copy link
Copy Markdown
Owner

derf commented May 6, 2026

I had lost track of this issue, sorry about that. This is indeed a sensible addition. Thanks!

@derf derf merged commit 9dccd2f into derf:master May 6, 2026
8 checks passed
@eworm-de eworm-de deleted the magic-mpeg branch May 7, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants